/**
 * Created by YY on 7/22/2016.
 */
angular.module('teacher.person', ['ui.router', 'auth'])
.config(function ($stateProvider) {
  $stateProvider.state('teacher.person', {
    url: '/person',
    views: {
      'header': {
        templateUrl: 'app/layout/header/header.html',
        controller: 'teacherHeaderCtrl'
      },
      'main': {
        templateUrl: 'app/teacher/person/person.html',
        controller: 'personCtrl'
      }
    }
  })
})
  .controller('personCtrl', function($location, deleteCredit, $scope) {
    $scope.logout = function() {
      deleteCredit();
      $location.path('/login');
    }
  })
